{**
 * SDTT.tpl: hien thi cho xem cac tai khoan trong DMuc
 *
 * Copyright (c) 2003-2012 John Willinsky
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
 *
 * Display list of sections in journal management.
 *
 * $Id$
 *}

{strip}
{assign var="pageTitle" value="S&#7889; d&#432; Ti&#7873;n t&#7879; "}
{assign var="socot" value="6"}
{include file="common/header.tpl"}
{/strip}


<br/>

<form method="post" action="{url nam= $xNam }">
	&nbsp;&nbsp;&nbsp;
	<select name="searchField" size="1" class="selectMenu">
		{html_options options=$fieldOptions selected=$searchField}
	</select>
	<select name="searchMatch" size="1" class="selectMenu">
		<option value="contains"{if $searchMatch == 'contains'} selected="selected"{/if}>C&#243; ch&#7913;a</option>
		<option value="is"{if $searchMatch == 'is'} selected="selected"{/if}>L&#224;</option>
		<option value="startsWith"{if $searchMatch == 'startsWith'} selected="selected"{/if}>B&#7855;t &#273;&#7847;u l&#224; </option>
	</select>
	<input type="text" size="10" name="search" class="textField" value="{$search|escape}" />&nbsp;<input type="submit" value="{translate key="common.search"}" class="button" />
</form>

{if $xMode != "view"} 
	<br/>
	<br/>
	{if $xMode  == "add"}
		<strong> Th&#234;m d&#242;ng m&#7899;i</strong>
	{else}
		<strong> S&#7917;a d&#7919; li&#7879;u  </strong>
	{/if}
	<br/>
	<br/>

	<div id="sectionForm">
	<form name="SDTT" method="post" action="{url nam= $xNam  EditMode = $xMode }">
	<table class="data" width="100%">
	<tr valign="top">
		<td width="20%" class="label"><label for="matk">M&#227; T&#224;i Kho&#7843;n:*</label></td>
		<td width="30%" class="value"><input type="text" name="matk" value="" id="matk" onkeyup="ShowHint(this.value, '{$dmtks}', 'txtHintMATK', 'matk')" size="40" maxlength="120" class="textField" /></td>
		<td width="40%" class="value"><div id="txtHintMATK"></div></td>
	</tr>


	<tr valign="top">
		<td width="20%" class="label"><label for="mant">Lo&#7841;i ti&#7873;n:*</label></td>
		<td width="30%" class="value"><input type="text" name="mant" value="" id="mant" onkeyup="ShowHint(this.value, '{$dmnts}', 'txtHintMANT', 'mant')" size="40" maxlength="120" class="textField" /></td>
		<td width="40%" class="value"><div id="txtHintMANT"></div></td>
	</tr>

		<tr valign="top">
		<td width="20%" class="label"><label for="madv">M&#227; Ng&#226;n h&#224;ng:*</label></td>
		<td width="30%" class="value"><input type="text" name="madv" value="" id="madv" onkeyup="ShowHint(this.value, '{$dmdvs}', 'txtHintMADV', 'madv')" size="40" maxlength="120" class="textField" /></td>
		<td width="40%" class="value"><div id="txtHintMADV"></div></td>
	</tr>

	</tr>

		<tr valign="top">
		<td width="20%" class="label"><label for="dknont">S&#7889; d&#432; n&#7907; (NT) :*</label></td>
		<td class="value"><input type="text" name="dknont" value="" id="dknont" pattern="[0-9.]+" size="40" maxlength="120" class="textField" onblur="testFieldNumber(this.value);" /></td>
		<td ></td>
	</tr>

	</tr>

		<tr valign="top">
		<td width="20%" class="label"><label for="dknont">S&#7889; d&#432; n&#7907; (NT) :*</label></td>
		<td class="value"><input type="text" name="dknovn" value="" id="dknovn" size="40" maxlength="120" class="textField" onblur="testFieldNumber(this.value);" /></td>
		<td ></td>
	</tr>


	</table>

	</div>
	<div class="separator"></div>
	
	<p><input type="submit" value="{translate key="common.save"}" class="button defaultButton" /> <input type="button" value="{translate key="common.cancel"}" class="button" onclick="document.location.href='{url nam= $xNam  escape=false}'" /></p>
	</form>
{/if}



<div id="sections">
{if $xMode != "add"} 
	<br/>
	<br/>
	<a class="action" href="{url nam= $xNam  EditMode = "add"}">Th&#234;m T&#224;i kho&#7843;n</a>
	<br/>
	<br/>
{/if}


<table width="100%" class="listing" id="dragTable">
	<tr>
		<td class="headseparator" colspan="{$socot}">&nbsp;</td>
	</tr>
	<tr class="heading" valign="bottom">
		<td width="10%">M&#227; T&#224;i kho&#7843;n</td>
		<td width="10%">Lo&#7841;i ti&#7873;n</td>
		<td width="10%">M&#227; Ng&#226;n h&#224;ng</td>
		<td width="10%">S&#7889; d&#432; N&#7907; (Nt&#7879;)</td>
		<td width="10%">Qui ra VND</td>

		<td width="15%" align="right">{translate key="common.action"}</td>
	</tr>
	<tr>
		<td class="headseparator" colspan="{$socot}">&nbsp;</td>
	</tr>

{iterate from=datas item=data name=datas}
	<tr valign="top" id="sdtt-{$data->getmatk()}" class="data">
		{assign var = "matk" value = $data->getmatk()}
		<td class="drag">{$data->getmatk()|escape}</td>
		<td class="drag">{$data->getmant()|escape}</td>
		<td class="drag">{$data->getmadv_tendv()|escape}</td>
		<td class="drag">{$data->getdknont()|escape}</td>
		<td class="drag">{$data->getdknovn()|escape}</td>


		<td align="right" class="nowrap">
			<a href="{url nam = $xNam  matk=$data->getmatk() madv=$data->getmadv()}" class="action">{translate key="common.edit"}</a>&nbsp;|&nbsp;<a href="{url op="deleteSDTT" path=$data->getmatk()}" onclick="return confirm('{translate|escape:"jsparam" key={"Xoa Tai Khoan  $matk"}}')" class="action">{translate key="common.delete"}</a>
		</td>

		
	</tr>
{/iterate}



<tr>
	<td colspan="{$socot}" class="endseparator">&nbsp;</td>
</tr>

</table>
</div>

{include file="common/footer.tpl"}

